//package com.nuoniu.sibanyun.config;
//
//
//import com.nuoniu.sibanyun.interceptor.handler.UserInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
//import javax.annotation.Resource;
//
///**
// * @ClassName WebAppConfigurer
// * @Description TODO
// * @Authpr baiqiang
// * @Date 2020/5/29 12:06
// **/
//@Configuration
//public class WebAppConfigurer extends WebMvcConfigurationSupport {
//
//    @Autowired
//    private UserInterceptor userInterceptor;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 可添加多个，这里选择拦截所有请求地址，进入后判断是否有加注解即可
//        registry.addInterceptor(userInterceptor).addPathPatterns("/**");
//    }
//
//}
